package com.tulele.vtool.service.impl;

import com.tulele.vtool.mapper.ArticleInfoMapper;
import com.tulele.vtool.service.IUserArticleProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserArticleProcessServiceImpl implements IUserArticleProcessService {

    @Autowired
    private ArticleInfoMapper articleInfoMapper;

    @Override
    public int modifyArticleInReadCount(Integer articleId) {
        return articleInfoMapper.updArticleInReadCount(articleId);
    }

    @Override
    public int modifyArticleOutReadCount(Integer articleId) {
        return articleInfoMapper.updArticleOutReadCount(articleId);
    }

    @Override
    public int modifyArticleShareCount(Integer articleId) {
        return articleInfoMapper.updArticleShareCount(articleId);
    }

}
